@layout("/common/_container.html",{js:["/assets/order/outOrder/outOrderQueryTool.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">出库订单查询</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
		                    <div class="layui-inline">
		                        <input id="condition" class="layui-input" type="text" placeholder="出库订单号、客户单号"/>
		                    </div>
		                    <div class="layui-inline">
		                        <select id="outOrderStatus">
		                            <option value="">选择状态</option>
						            <option value="待出库">待出库</option>
						            <option value="已出库">已出库</option>
						            <option value="作废">作废</option>
						            <option value="撤回">撤回</option>
		                        </select>
		                    </div>
		                    <div class="layui-inline">
								<select id="outCustomerId">
					            	<option value="">选择客户</option>
						            @for(item in basicCustomerList!){
						            <option value="${item.id}">${item.customerName}</option>
						            @}
					        	</select>
		                    </div>
		                    <div class="layui-inline">
								<select id="outStorehouseId">
					            	<option value="">选择仓库</option>
						            @for(item in basicWarehouseList!){
						            <option value="${item.id}">${item.warehouseName}</option>
						            @}
					        	</select>
		                    </div>
		                    <div class="layui-inline" style="width: 150px;">
		                        <input id="startTime" class="layui-input" type="text" placeholder="制单日期从"/>
		                    </div>
                            <div class="layui-inline">
                            	一
                            </div>
		                    <div class="layui-inline" style="width: 150px;">
		                        <input id="endTime" class="layui-input" type="text" placeholder="制单日期至"/>
		                    </div>
		                    <div class="layui-inline">
		                        <button id="btnSearchout" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
		                    </div>
		                </div>
		            </div>
		            <table class="layui-table" id="outOrderTable" lay-filter="outOrderTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="outOrderStatusTpl">
  {{#  if(d.outOrderStatus === '作废'){ }}
    <span style="color: #FF4500;font-weight: 600;">{{ d.outOrderStatus }}</span>
  {{#  }else if(d.outOrderStatus === '待出库'){ }}
    <span style="color: #FFC300;font-weight: 600;">{{ d.outOrderStatus }}</span>
  {{#  }else if(d.outOrderStatus === '已出库'){ }}
    <span style="color: #43CF7C;font-weight: 600;">{{ d.outOrderStatus }}</span>
  {{#  } else { }}
    {{ d.outOrderStatus }}
  {{#  } }}
</script>

<script type="text/html" id="tableBar">
    {{#  if(d.outOrderStatus === '待出库' || d.outOrderStatus === '已出库'){ }}
    	<a class="layui-btn layui-btn-danger layui-btn-xs" style="font-size: 7px;" lay-event="revoke" id="revoke">撤回</a>
    {{#   } }}
</script>

@}